home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 2 / AACD 2.iso / AACD / Magazine / GraphicsCards / StormMesa / src / vbfill.h < prev    next >
C/C++ Source or Header  |  1999-02-04  |  4KB  |  133 lines

  1. /* $Id: vbfill.h,v 3.1 1998/02/20 04:53:07 brianp Exp $ */
  2.  
  3. /*
  4.  * Mesa 3-D graphics library
  5.  * Version:  3.0
  6.  * Copyright (C) 1995-1998  Brian Paul
  7.  *
  8.  * This library is free software; you can redistribute it and/or
  9.  * modify it under the terms of the GNU Library General Public
  10.  * License as published by the Free Software Foundation; either
  11.  * version 2 of the License, or (at your option) any later version.
  12.  *
  13.  * This library is distributed in the hope that it will be useful,
  14.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  16.  * Library General Public License for more details.
  17.  *
  18.  * You should have received a copy of the GNU Library General Public
  19.  * License along with this library; if not, write to the Free
  20.  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  */
  22.  
  23.  
  24. /*
  25.  * $Log: vbfill.h,v $
  26.  * Revision 3.1  1998/02/20 04:53:07  brianp
  27.  * implemented GL_SGIS_multitexture
  28.  *
  29.  * Revision 3.0  1998/01/31 21:06:45  brianp
  30.  * initial rev
  31.  *
  32.  */
  33.  
  34.  
  35. #ifndef VBFILL_H
  36. #define VBFILL_H
  37.  
  38.  
  39. #include "types.h"
  40.  
  41.  
  42. extern void gl_Normal3f( GLcontext *ctx, GLfloat nx, GLfloat ny, GLfloat nz );
  43.  
  44. extern void gl_Normal3fv( GLcontext *ctx, const GLfloat *normal );
  45.  
  46.  
  47. extern void gl_Indexf( GLcontext *ctx, GLfloat c );
  48.  
  49. extern void gl_Indexi( GLcontext *ctx, GLint c );
  50.  
  51.  
  52. extern void gl_Color3f( GLcontext *ctx,
  53.                         GLfloat red, GLfloat green, GLfloat blue );
  54.  
  55. extern void gl_Color3fv( GLcontext *ctx, const GLfloat *c );
  56.  
  57. extern void gl_Color4f( GLcontext *ctx,
  58.                         GLfloat red, GLfloat green,
  59.                         GLfloat blue, GLfloat alpha );
  60.  
  61. extern void gl_Color4fv( GLcontext *ctx, const GLfloat *c );
  62.  
  63. extern void gl_Color4ub( GLcontext *ctx,
  64.                          GLubyte red, GLubyte green,
  65.                          GLubyte blue, GLubyte alpha );
  66.  
  67. extern void gl_Color4ubv( GLcontext *ctx, const GLubyte *c );
  68.  
  69.  
  70. extern void gl_ColorMat3f( GLcontext *ctx,
  71.                            GLfloat red, GLfloat green, GLfloat blue );
  72.  
  73. extern void gl_ColorMat3fv( GLcontext *ctx, const GLfloat *c );
  74.  
  75. extern void gl_ColorMat3ub( GLcontext *ctx,
  76.                             GLubyte red, GLubyte green, GLubyte blue );
  77.  
  78. extern void gl_ColorMat4f( GLcontext *ctx,
  79.                            GLfloat red, GLfloat green,
  80.                            GLfloat blue, GLfloat alpha );
  81.  
  82. extern void gl_ColorMat4fv( GLcontext *ctx, const GLfloat *c );
  83.  
  84. extern void gl_ColorMat4ub( GLcontext *ctx,
  85.                             GLubyte red, GLubyte green,
  86.                             GLubyte blue, GLubyte alpha );
  87.  
  88.  
  89. extern void gl_TexCoord2f( GLcontext *ctx, GLfloat s, GLfloat t );
  90.  
  91. extern void gl_TexCoord4f( GLcontext *ctx,
  92.                            GLfloat s, GLfloat t, GLfloat r, GLfloat q );
  93.  
  94. /* GL_SGIS_multitexture */
  95. extern void gl_MultiTexCoord4f( GLcontext *ctx, GLenum target,
  96.                                 GLfloat s, GLfloat t, GLfloat r, GLfloat q );
  97.  
  98.  
  99. extern void gl_EdgeFlag( GLcontext *ctx, GLboolean flag );
  100.  
  101.  
  102.  
  103. extern void gl_vertex2f_nop( GLcontext *ctx, GLfloat x, GLfloat y );
  104.  
  105. extern void gl_vertex3f_nop( GLcontext *ctx, GLfloat x, GLfloat y, GLfloat z );
  106.  
  107. extern void gl_vertex4f_nop( GLcontext *ctx,
  108.                              GLfloat x, GLfloat y, GLfloat z, GLfloat w );
  109.  
  110. extern void gl_vertex3fv_nop( GLcontext *ctx, const GLfloat *v );
  111.  
  112.  
  113.  
  114. extern void gl_set_vertex_function( GLcontext *ctx );
  115.  
  116. extern void gl_set_color_function( GLcontext *ctx );
  117.  
  118.  
  119.  
  120. extern void gl_eval_vertex( GLcontext *ctx,
  121.                             const GLfloat vertex[4], const GLfloat normal[3],
  122.                 const GLubyte color[4], GLuint index,
  123.                             const GLfloat texcoord[4] );
  124.  
  125.  
  126. extern void gl_Begin( GLcontext *ctx, GLenum p );
  127.  
  128. extern void gl_End( GLcontext *ctx );
  129.  
  130.  
  131. #endif
  132.  
  133.